//
//  SANewGoodsModel.h
//  yidiantong
//
//  Created by 黄志刚 on 2020/10/12.
//

#import <Foundation/Foundation.h>

@class SAProductColoursList,SAProductSizesList,SAProductToAttrFormsList,SASkuFormModel;

@interface SANewGoodsModel : NSObject

@property (nonatomic, copy) NSString *barcode;
@property (nonatomic,strong) NSMutableArray <SAProductColoursList *>*colours;
@property (nonatomic, strong) NSString *entryPrice;
@property (nonatomic, assign) NSInteger imgIndex;
@property (nonatomic, strong) NSArray *imgUrl;
@property (nonatomic, assign) NSInteger merchantPrice;
@property (nonatomic, assign) NSInteger onsales;
@property (nonatomic, copy) NSString *onsalesTime;
@property (nonatomic, copy) NSString *productCode;
@property (nonatomic, assign) NSInteger productId;
@property (nonatomic, copy) NSString *productName;
@property (nonatomic, assign) NSInteger providerId;
@property (nonatomic, copy) NSString *providerName;
@property (nonatomic, copy) NSString *remark;
@property (nonatomic, strong) NSString *retailPrice;
@property (nonatomic, assign) NSInteger discountRate;
@property (nonatomic,strong) NSMutableArray <SAProductSizesList *>*sizes;
@property (nonatomic, assign) NSInteger stockDown;
@property (nonatomic, assign) NSInteger stockUp;
@property (nonatomic,strong) NSMutableArray <SAProductToAttrFormsList *>*attrForm;
@property (nonatomic, assign) NSInteger unitId;
@property (nonatomic, copy) NSString *unitName;
@property (nonatomic, assign) NSInteger wholesalePrice;
@property (nonatomic, assign) BOOL coloursChoice;
@property (nonatomic, assign) BOOL sizesChoice;
@property (nonatomic, assign) BOOL nameCodeEdit;
@property (nonatomic, strong) NSMutableArray<SASkuFormModel *> *skuForm;
@property (nonatomic, strong) NSString *storeName;

@property (nonatomic, assign) NSInteger isMicroStoreProduct;
@property (nonatomic, copy) NSString *microStorePrice;
@property (nonatomic, copy) NSString *microStoreIntro;

@property (nonatomic, strong) NSString *ground;
@property (nonatomic, strong) NSString *dealer;

@end

@interface SAProductColoursList : NSObject

@property (nonatomic, assign) NSInteger attrType;
@property (nonatomic, assign) NSInteger specsAttrId;
@property (nonatomic, copy) NSString *attrName;
@property (nonatomic, assign) BOOL check;

@end

@interface SAProductSizesList : NSObject

@property (nonatomic, assign) NSInteger attrType;
@property (nonatomic, assign) NSInteger specsAttrId;
@property (nonatomic, copy) NSString *attrName;
@property (nonatomic, assign) BOOL check;

@end

@interface SAProductToAttrFormsList : NSObject

@property (nonatomic, assign) NSInteger attrType;
@property (nonatomic, assign) NSInteger attrId;
@property (nonatomic, copy) NSString *attrName;
@property (nonatomic, assign) BOOL check;

@end

@interface SASkuFormModel : NSObject

@property (nonatomic, copy) NSString *colourId;
@property (nonatomic, copy) NSString *sizeId;
@property (nonatomic, copy) NSString *barcode;

//由于数据需要,需要从上层传入
@property (nonatomic, copy) NSString *colourName;
@property (nonatomic, copy) NSString *sizeName;

@end

